<?php /* Smarty version Smarty-3.1.8, created on 2012-06-15 02:58:49
         compiled from "tmpl/crud_template/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:13243865044fc491bfc1a000-04734721%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '699e752e5df092bcebde5ba95a124474b21f3857' => 
    array (
      0 => 'tmpl/crud_template/edit.html',
      1 => 1339754320,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13243865044fc491bfc1a000-04734721',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fc491bfc3c829_73472361',
  'variables' => 
  array (
    'table' => 0,
    'controller' => 0,
    'table_cols' => 0,
    'col' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fc491bfc3c829_73472361')) {function content_4fc491bfc3c829_73472361($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("tmpl/crud_template/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

  
<h2><?php echo $_smarty_tpl->tpl_vars['table']->value;?>
 Edit</h2>
<form class=form action=<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
_edit.php method=POST>
<input type=hidden name=id value="{$id|escape:'html'}">
<ul>
<?php  $_smarty_tpl->tpl_vars['col'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['col']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['table_cols']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['col']->key => $_smarty_tpl->tpl_vars['col']->value){
$_smarty_tpl->tpl_vars['col']->_loop = true;
?>
  <?php if ($_smarty_tpl->tpl_vars['col']->value!="id"){?>
<li><label><?php echo $_smarty_tpl->tpl_vars['col']->value;?>
:</label><textarea rows=5 cols=100 name="<?php echo $_smarty_tpl->tpl_vars['col']->value;?>
">{$<?php echo $_smarty_tpl->tpl_vars['col']->value;?>
|escape:'html'}</textarea></li>
  <?php }?>
  <?php } ?>
<li><label>&nbsp;</label><input type=submit></li>
</ul>
</form>
  
<hr>
<a href="<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
_list.php">List</a>

<?php echo $_smarty_tpl->getSubTemplate ("tmpl/crud_template/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>